
// Find an ideal starting/base position...

// Pass in an Object, so we can use that as the starting spot.
HS_Find_Base_Pos = {
	// Ask SHK_Pos to return a base position in an area 5000 wide from
	// the passed logic marker...
	private ["_newPos"];
	// Will return an empty array if we can't find a spot...so try again.
	_newPos= [];
	while {count _newPos== 0} do
	{
		if (isNil "paramsArray") then
		{	
			_newPos=[_this select 0, 5000, [0, 360],true,[2, 500]] call SHK_pos;
		} else {
			_newPos=[_this select 0, (paramsArray select 0), [0, 360],true,[2, 500]] call SHK_pos;
		};
	};

	// We want to then modify this position by finding a clear area to put our base...
	// See definition of the BIS_fnc_findSafePos for the params...
	_newPos= [_newPos, 5, 500, 10, 0, 1000, 0] call BIS_fnc_findSafePos;

	// return the position
	_newPos
}
